import { utils } from 'hi-ui';
export default {
    id: "adjustmentDetailEntity",
    returnTotal: true,
    modelFile: "adjustment/dataset/adjustmentDetailEntity.xml",
    //主从配置
    relation: {
        selfField: ["FNUMBER"],
        parentField: ["FNUMBER"]
    },
    sortFields: [
        "FID",
        "FNUMBER",
        "FBARCODE",
        "FGOODSNUMBER",
        "FDESC",
        "FPINYIN",
        "FJIANPIN",
        "FSPEC",
        "FUNIT",
        "FCLASS",
        "FPROADDRESS",
        "FBRAND",
        "FPRICE",
        "FABC",
        "FDOSAGEFORM",
        "FAMOUNT",
        "FAPPROVALNUMBER",
        "FAPPROVALDATE",
        "FMEDICARETYPE",
        "FCREATEDATE",
        "FDRUGCLASS	",
        "FSTORAGE",
        "FENTERPRISEDESC",
        "FENTERPRISEID",
        "FSHOPDESC",
        "FSHOPDESCID",
        "FNOTE",
        "FVIPPRICE",


    ],
    fields: {
        FID: {
            name: "FID", //字段ID
            label: "ID", //字段描述
            dbtype: "dbString", //数据类型
            default: {
                //默认值
                //rule: 'first', //prior   填充规则
                exps: (data) => {
                    //填充表达式
                    return utils.string.guid();
                },
            },
        },
        FNUMBER: {
            name: "FNUMBER", //字段ID
            label: "单号", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
            required: true,
            readonly: true,
        },
        FBARCODE: {
            name: "FBARCODE", //字段ID
            label: "条形码", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
            required: true,
        },

        FGOODSNUMBER: {
            name: "FGOODSNUMBER", //字段ID
            label: "店内编码", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
            required: true,
        },
        FBRAND: {
            name: "FBRAND", //字段ID
            label: "品牌", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
            readonly: true,
        },
        FDESC: {
            name: "FDESC", //字段ID
            label: "通用名称", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
            required: true,
            readonly: true,
        },
        FPINYIN: {
            name: "FPINYIN", //字段ID
            label: "拼音", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,

        },
        FJIANPIN: {
            name: "FJIANPIN", //字段ID
            label: "简拼", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,

        },
        FAMOUNT: {
            name: "FAMOUNT", //字段ID
            label: "数量", //字段描述
            dbtype: "dbFloat", //数据类型
        },
        FUNIT: {
            name: "FUNIT", //字段ID
            label: "单位", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
            required: true,
            readonly: true,
        },
        FENTERPRISEDESC: {
            name: "FENTERPRISEDESC", //字段ID
            label: "企业名称", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FENTERPRISEID: {
            name: "FENTERPRISEID", //字段ID
            label: "企业ID", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FPRICE: {
            name: "FPRICE", //字段ID
            label: "零售价", //字段描述
            dbtype: "dbFloat", //数据类型
            readonly: true,
        },
        FNEWPRICE: {
            name: "FNEWPRICE", //字段ID
            label: "新零售价", //字段描述
            dbtype: "dbFloat", //数据类型
            required: true,
        },


        FCLASS: {
            name: "FCLASS", //字段ID
            label: "类别", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },

        FSPEC: {
            name: "FSPEC", //字段ID
            label: "规格", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        FPROADDRESS: {
            name: "FPROADDRESS", //字段ID
            label: "生产地址", //字段描述
            dbtype: "dbString", //数据类型
        },
        FDOSAGEFORM: {
            name: "FDOSAGEFORM", //字段ID
            label: "剂型", //字段描述
            dbtype: "dbString", //数据类型
        },

        FAPPROVALDATE: {
            name: "FAPPROVALDATE", //字段ID
            label: "批准日期", //字段描述
            dbtype: "dbDate", //数据类型
        },
        FAPPROVALNUMBER: {
            name: "FAPPROVALNUMBER", //字段ID
            label: "批准文号", //字段描述
            dbtype: "dbString", //数据类型
        },
        FMEDICARETYPE: {
            name: "FMEDICARETYPE", //字段ID
            label: "医保类别", //字段描述
            dbtype: "dbString", //数据类型
        },
        FDRUGCLASS: {
            name: "FDRUGCLASS", //字段ID
            label: "药品分类", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        FSTORAGE: {
            name: "FSTORAGE", //字段ID
            label: "仓库", //字段描述
            dbtype: "dbString", //数据类型
        },
        FABC: {
            name: "FABC", //字段ID
            label: "ABC级", //字段描述
            dbtype: "dbString", //数据类型
        },

        FCREATEDATE: {
            name: "FCREATEDATE", //字段ID
            label: "创建日期", //字段描述
            dbtype: "dbDate", //数据类型

        }, FSHOPDESC: {
            name: "FSHOPDESC", //字段ID
            label: "店铺", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FSHOPDESCID: {
            name: "FSHOPDESCID", //字段ID
            label: "店铺编号", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FVIPPRICE: {
            name: "FVIPPRICE", //字段ID
            label: "会员价", //字段描述
            dbtype: "dbFloat", //数据类型
            readonly: true,

        },
        FNEWVIPPRICE: {
            name: "FNEWVIPPRICE", //字段ID
            label: "新会员价", //字段描述
            dbtype: "dbFloat", //数据类型
            required: true,
        },
        FNOTE: {
            name: "FNOTE", //字段ID
            label: "备注", //字段描述
            dbtype: "dbString", //数据类型
            length: 250,
        },


    }
}
